﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XPathAutoSuggest
{
    /// <summary>
    /// Interface dictates the members that should be possessed by a view model suitable for controlling
    /// the view which displays links to XPath help sites
    /// </summary>
    public interface IHelpLinksVM
    {
        /// <summary>Navigate, using browser, to the selected link</summary>
        /// <param name="uri">Link to a web page</param>
        void GoLinksCommandExecute(string uri);
        
        /// <summary>Whether the GOLInks command can be executed</summary>
        /// <returns>True/false</returns>
        bool GoLinksCommandCanExecute();
        /// <summary>Whether the CloseLinks command can execute</summary>
        /// <returns>True/false</returns>
        bool CloseLinksCommandCanExecute();
        /// <summary>Raises an event instructing the host view to close itself</summary>
        void CloseLinksCommandExecute();
    }
}
